﻿<%@ Page Language="C#" MasterPageFile="~/giaovien/Manager3.master" AutoEventWireup="true"
    CodeFile="TrangDanhGiaHanhKiem.aspx.cs" Inherits="giaovien_DanhGiaHanhKiem" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head1" runat="Server">
    <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="Server">
    <div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
                <div class="personal_top_text">
                    Đánh giá hạnh kiểm
                </div>
                <div style="height:200px">
                <div class="boxleft">
                <div class="personal_style_form">
                    <span class="personal_laber">Năm học </span>
                    <asp:DropDownList ID="drNamHoc" runat="server" Width="120px">
                    </asp:DropDownList>
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber">Học kỳ </span>
                    <asp:RadioButton ID="rdoHocKy1" runat="server" GroupName="HocKy"  
                        Checked="true" AutoPostBack="True" 
                        oncheckedchanged="rdoHocKy1_CheckedChanged" />I&nbsp;&nbsp;&nbsp;
                    <asp:RadioButton ID="rdoHocKy2" runat="server" GroupName="HocKy" 
                        AutoPostBack="True" oncheckedchanged="rdoHocKy2_CheckedChanged" />II
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber">Lớp học </span>
                    <asp:DropDownList ID="drLopHoc" runat="server" Width="120px" 
                        AutoPostBack="True" onselectedindexchanged="drLopHoc_SelectedIndexChanged">
                    </asp:DropDownList>
                </div>
                <div class="personal_style_form">
                    <span style="margin-left: 150px;">
                        <asp:Button runat="server" ID="btnTimKiem" Text="Tìm kiếm"  CssClass="button_150"
                            OnClick="btnTimKiem_Click" />
                    </span>
                </div>
                </div>
                <div class="boxright">
                    <table style="border:0.2px solid #ccc;width:100%;">
                        <tr class="dong1" style="border-bottom:0.2px solid #ccc;background-color:#E4ECEF">
                            <td colspan="2" style="text-align:center;font-size:15px;">Tình trạng bảng điểm</td>
                        </tr>
                        <tr class="dong1">
                            <td class="titledong">Trạng thái hạnh kiểm:</td>
                            <td class="lbl"><asp:Label runat="server" ID="lblTrangThai"></asp:Label></td>
                        </tr>
                        <tr class="dong1">
                            <td class="titledong">Ngày gửi:</td>
                            <td class="lbl"><asp:Label runat="server" ID="lblNgayGui"></asp:Label></td>
                        </tr>
                        <tr class="dong1">
                            <td class="titledong">Ngày duyệt:</td>
                            <td class="lbl"><asp:Label runat="server" ID="lblNgayDuyet"></asp:Label></td>
                        </tr>
                        <%--
                         <tr class="dong1">
                            <td class="titledong">Thông báo gửi:</td>
                            <td class="lbl"><asp:TextBox runat="server" ID="txtThongBao" Width="97%" TextMode="MultiLine" Height="50px"></asp:TextBox></td>
                        </tr>--%>
                    </table>
                </div>
                </div>
                <div class="personal_style_form">
                    <span class="">
                        <asp:CheckBox ID="ckCheckAll2" runat="server" AutoPostBack="True" OnCheckedChanged="ckCheckAll2_CheckedChanged" />Tất cả
                        <%--<asp:HoverMenuExtender ID="HoverMenuExtender1" runat="server" >
                        </asp:HoverMenuExtender>--%>
                    </span><span class="" style="margin-left: 107px;">Xếp loại</span>&nbsp;&nbsp;
                    <asp:RadioButton ID="rdoTot1" runat="server" GroupName="XLHK" 
                        AutoPostBack="True" oncheckedchanged="rdoTot1_CheckedChanged" />Tốt&nbsp;&nbsp;&nbsp;
                    <asp:RadioButton ID="rdoKha1" runat="server" GroupName="XLHK"
                        AutoPostBack="True" oncheckedchanged="rdoKha1_CheckedChanged" />Khá&nbsp;&nbsp;&nbsp;
                    <asp:RadioButton ID="rdoTB1" runat="server" GroupName="XLHK"  
                        AutoPostBack="True" oncheckedchanged="rdoTB1_CheckedChanged" />TB&nbsp;&nbsp;&nbsp;
                    <asp:RadioButton ID="rdoYeu1" runat="server" GroupName="XLHK"
                        AutoPostBack="True" oncheckedchanged="rdoYeu1_CheckedChanged" />Yếu
                </div>
                <div>
                    <asp:GridView ID="grvHanhKiem" runat="server" AutoGenerateColumns="False" Width="100%"
                        AllowPaging="True" Height="28px" ShowFooter="True" PageSize="50"
                        onrowdeleting="grvHanhKiem_RowDeleting" 
                        onrowediting="grvHanhKiem_RowEditing" onrowupdating="grvHanhKiem_RowUpdating">
                        <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" />
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="ckCheck" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="STT">
                                <ItemTemplate>
                                    <%# Container.DataItemIndex + 1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Mã học sinh" SortExpression="MaHS">
                                <ItemTemplate>
                                    <asp:Label ID="lblMaHS" runat="server" Text='<%#Bind("MaHS") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tên học sinh" SortExpression="TenHS">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblTenHS" Text='<%# Bind("TenHS") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Điểm TBT" SortExpression="DiemTongKet">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblDTK" Text='<%# Bind("DiemTongKet") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Xếp loại HK" SortExpression="HK">
                                <ItemTemplate>
                                    <asp:RadioButton runat="server" ID="rdoHKT" GroupName="XL" Text="Tốt" Checked='<%#Bind("HanhKiemTot") %>'
                                        Width="50px" />&nbsp;&nbsp;&nbsp;
                                    <asp:RadioButton runat="server" ID="rdoHKK" GroupName="XL" Text="Khá" Checked='<%#Bind("HanhKiemKha") %>'
                                        Width="50px" />&nbsp;&nbsp;&nbsp;
                                    <asp:RadioButton runat="server" ID="rdoHKTB" GroupName="XL" Text="TB" Checked='<%#Bind("HanhKiemTB") %>'
                                        Width="50px" />&nbsp;&nbsp;&nbsp;
                                    <asp:RadioButton runat="server" ID="rdoHKY" GroupName="XL" Text="Yếu" Checked='<%#Bind("HanhKiemYeu") %>'
                                        Width="50px" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Lỗi VP">
                                <ItemTemplate>
                                    <asp:ImageButton runat="server" ID="imgLoiVP" Height="30px" ImageUrl="~/Icon/violation.ico"
                                        PostBackUrl='<%#"~/giaovien/TrangDanhSachLoiHS.aspx?MaHS="+Eval("MaHS")
                                    +"&MaNam="+this.drNamHoc.SelectedValue.ToString()+"&TenLop="+ this.drLopHoc.SelectedItem.Text
                                    +"&TenNam="+ this.drNamHoc.SelectedItem.Text+"&MaKy="+this%>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField ShowEditButton="true"   ButtonType="Image" HeaderText="Cập nhật" EditImageUrl="~/Icon/edit.ico"
                                ControlStyle-Height="25px" EditText="Sửa">
                                <ControlStyle Height="25px"></ControlStyle>
                            </asp:CommandField>
                            <asp:CommandField ShowDeleteButton="true" ButtonType="Image" HeaderText="Xóa" DeleteImageUrl="~/Icon/cancel.ico"
                                ControlStyle-Height="25px" DeleteText="Xóa">
                                <ControlStyle Height="25px"></ControlStyle>
                            </asp:CommandField>
                        </Columns>
                        <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#9999FF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                    </asp:GridView>
                </div>
                <div class="personal_style_form" style="margin-top: 10px;">
                    <span class="">
                        <asp:CheckBox ID="ckToanBo" runat="server"  AutoPostBack="True" OnCheckedChanged="ckToanBo_CheckedChanged" />Tất cả
                    </span><span class="" style="margin-left: 107px;">Xếp loại</span>&nbsp;&nbsp;
                    <asp:RadioButton ID="rdoTot2" runat="server" GroupName="XLHK" 
                        AutoPostBack="True" oncheckedchanged="rdoTot2_CheckedChanged" />Tốt&nbsp;&nbsp;&nbsp;
                    <asp:RadioButton ID="rdoKha2" runat="server" GroupName="XLHK"  
                        AutoPostBack="True" oncheckedchanged="rdoKha2_CheckedChanged" />Khá&nbsp;&nbsp;&nbsp;
                    <asp:RadioButton ID="rdoTB2" runat="server" GroupName="XLHK" 
                        AutoPostBack="True" oncheckedchanged="rdoTB2_CheckedChanged" />TB&nbsp;&nbsp;&nbsp;
                    <asp:RadioButton ID="rdoYeu2" runat="server" GroupName="XLHK"  
                        AutoPostBack="True" oncheckedchanged="rdoYeu2_CheckedChanged" />Yếu
                </div>
                <div id="personalSubmit" class="personal_submit clearfix">
                    <asp:Button runat="server" ID="btnLuuHK" CssClass="button_150" Text="Lưu hạnh kiểm"
                        OnClick="btnLuuHK_Click" />&nbsp;&nbsp;
                        <asp:Button runat="server" ID="btnGuiHK" CssClass="button_150" 
                        Text="Gửi hạnh kiểm" onclick="btnGuiHK_Click"
                        />&nbsp;&nbsp;
                </div>
            </div>
        </div>
    </div>
</asp:Content>
